<?php

namespace Admin\Factory\Controller;

use Admin\Controller\ArticleController;
use Admin\Controller\RestaurantController;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class RestaurantControllerFactory implements FactoryInterface
{
    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $identityService = $serviceLocator->getServiceLocator()->get('AdminIdentityManager');
        $controller = new RestaurantController($identityService);
        return $controller;
    }
}